package com.xique.common.core.constant;

/**
 * 命令下发状态
 *
 * @author WLD
 */
public class CommandResultCode {

    /**
     * 请求命令，需要应答
     */
    public static final int REQ_RSP = 1;

    /**
     * 请求命令，不需要应答
     */
    public static final int REQ_NORSP = 2;

    /**
     * 接口处理成功
     */
    public static final int OK = 0;

    /**
     * 参数错误
     */
    public static final int ILLEGAL_ARGUMENT = -1;

    /**
     * 访问拦截
     */
    public static final int ACCESS_DENY = -2;

    /**
     * 内部错误
     */
    public static final int INTERNAL_ERROR = -3;

    /**
     * 服务暂不可用
     */
    public static final int SERVICE_UNAVAILABLE = -4;

    /**
     * 请求超时
     */
    public static final int OVERTIME = -5;

    /**
     * 命令未下发
     */
    public static final int COMMAND_NOT_SEND = -6;

    /**
     * 命令下发失败
     */
    public static final int COMMAND_FAIL = -7;

    /**
     * 命令下发成功，未收到设备应答
     */
    public static final int COMMAND_ACK_FAIL = -8;

    /**
     * 设备离线，命令未下发
     */
    public static final int COMMAND_DEV_OFF = -9;

}
